<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%   String[] levArry = menusInfo[currentCnt][1].split("-");
     int      lev_len = menusInfo[currentCnt][1].split("-").length;
     String   lev1 = null;
     int      lev1_idx =0;
     String   lev2 = null;
     int      lev2_idx =0; 
     String   lev3 = null;
     int      lev3_idx =0; 
     String   lev4 = null;  
     int      lev4_idx =0; 

%>
			<div class="lineMap">
                <ul>
					<li class="first"><a href="/" class="home">홈으로</a></li>
				<%if(menuCurrent.indexOf("7-")!=0
				){   
				               
				     %>  <!--  기업소개 -->   <!-- <%=menuCurrent %>:<%=menusInfo[currentCnt][1].split("-").length %> -->
				     
				     <!-- lev 1  -->  
<%  if( lev_len >= 1){
      lev1 = levArry[0];
      lev1_idx =Integer.parseInt(lev1)-1;
	
%>				     
 					<li><a href="#none"><%= menusInfo_1[lev1_idx][2] %></a>
						<div class="subD">
							<ul>
							    <%for(int i=0;i<=menuCnt_1-1;i++){ 
							    	if(menusInfo_1[i][1].indexOf("7-")!=0 ){
					    		%>
								<li class="<%if(lev1.equals(menusInfo_1[i][1])){out.println(" on");}%>">
								  <a href="<%=menusInfo_1[i][3] %>"><%=menusInfo_1[i][2] %></a></li>
					    		<%
							    	}
							    %>
                               <%} %>
							</ul>
						</div>
					</li>
<% } %>  
<%
if( lev_len >= 2){ 
      lev2 =  levArry[0]+"-"+levArry[1];
      lev2_idx =Integer.parseInt(levArry[1])-1;
    
 %>  
 					<li><a href="#none"  <% if(lev_len < 3)out.print("class='on'"); %>><%for(int j=0;j<=menuCnt_2-1;j++){ %>
 					                        <%if(menusInfo_2[j][1].equals(lev2)){%>
 					                               <%= menusInfo_2[j][2] %>
 					                         <%} 
 					                      }%>
 					                   </a>
						<div class="subD">
							<ul>
							    <%for(int i=0;i<=menuCnt_2-1;i++){ %>
							    <%if(menusInfo_2[i][1].indexOf(lev1)==0){ %>
								<li class="<%if(lev2.equals(menusInfo_2[i][1])){out.println(" on");}%>">
									<%if("4-4".equals(menusInfo_2[i][1])){ //공시일때 팝업띄우기%>
									<a href="#" onclick="gongsiPop();return false;"><%=menusInfo_2[i][2] %></a></li>
									<%} %>
									<%if(!"4-4".equals(menusInfo_2[i][1])){ %>
									<a href="<%=menusInfo_2[i][3] %>"><%=menusInfo_2[i][2] %></a></li>
									<%} %>
                               <%}} %>
							</ul>
						</div>
					</li>
<% } %>  
<%
if( lev_len >= 3){ 
      lev3 =  levArry[0]+"-"+levArry[1]+"-"+levArry[2];
      lev3_idx =Integer.parseInt(levArry[2])-1;
    
 %>  
 
 					<li><a href="#none" <% if(lev_len < 4)out.print("class='on'"); %>><%for(int j=0;j<=menuCnt_3-1;j++){ %>
 					                        <%if(menusInfo_3[j][1].equals(lev3)){%>
 					                               <%= menusInfo_3[j][2] %>
 					                         <%} 
 					                      }%></a>
						<div class="subD">
							<ul>
							    <%for(int i=0;i<=menuCnt_3-1;i++){ %>
							     <%if(menusInfo_3[i][1].indexOf(lev2)==0){ %>
								<li class="<%if(lev3.equals(menusInfo_3[i][1])){out.println(" on");}%>">
								  <a href="<%=menusInfo_3[i][3] %>"><%=menusInfo_3[i][2] %></a></li>
                               <%} }%>
							</ul>
						</div>
					</li>
<% } %>

<%
if( lev_len >= 4){ 
      lev4 =  levArry[0]+"-"+levArry[1]+"-"+levArry[2]+"-"+levArry[3];
      lev4_idx =Integer.parseInt(levArry[3])-1;
 %>  
 					<li><a href="#none" class="on"><%for(int j=0;j<=menuCnt_4-1;j++){ %>
 					                        <%if(menusInfo_4[j][1].equals(lev4)){%>
 					                               <%= menusInfo_4[j][2] %>
 					                         <%} 
 					                      }%></a>
						<div class="subD">
							<ul>
							    <%for(int i=0;i<=menuCnt_4-1;i++){ %>
							   <%if(menusInfo_4[i][1].indexOf(lev3)==0){ %>
							   <%
							   //임시 막기 
							   if("6-1-2-3".equals(menusInfo_4[i][1])
								   	||"6-1-2-4".equals(menusInfo_4[i][1])
							   		||"6-1-2-5".equals(menusInfo_4[i][1])
									   ){
								   continue;
							   }
							   
							   %>
								<li class="<%if(lev4.equals(menusInfo_4[i][1])){out.println(" on");}%>">
								  <a href="<%=menusInfo_4[i][3] %>"><%=menusInfo_4[i][2] %></a></li>
                               <%}}%>
							</ul>
						</div>
					</li>
<% } %>
																																			
				<%} %>
				
				<%
				//7일때
				if(menuCurrent.indexOf("7-")==0
				){
					String nm = "";
					for(int i=0;i<=menusInfo_1.length-1;i++){ 
						if(menuCurrent.equals(menusInfo_1[i][1]) ){
							nm = menusInfo_1[i][2];
						}
					}
				%>
 					<li><a href="#none" class="on"><%= nm %></a>
						<div class="subD">
							<ul>
							    <%for(int i=0;i<=menusInfo_1.length-1;i++){ 
							    	if(menusInfo_1[i][1].indexOf("7-")==0 ){
					    		%>
								<li class="<%if(menuCurrent.equals(menusInfo_1[i][1])){out.println(" on");}%>">
								  <a href="<%=menusInfo_1[i][3] %>"><%=menusInfo_1[i][2] %></a></li>
					    		<%
							    	}
							    %>
                               <%} %>
							</ul>
						</div>
					</li>
				<%}%>
				</ul>
            </div>